package com.apex.crm.controller;

import com.apex.crm.base.BaseController;
import com.apex.crm.query.OrderDetailsQuery;
import com.apex.crm.service.OrderDetailsService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author XiaoYang
 * @version 1.0
 * @program: crm
 * @Classname OrderDetailsController
 * @description TODO
 * @date 2021/6/10 13:24
 */

@Controller
@RequestMapping("order_details")
public class OrderDetailsController extends BaseController {

    @Resource
    private OrderDetailsService orderDetailsService;

    //@ApiOperation("订单详情")
    @GetMapping("list")
    @ResponseBody
    public Map<String,Object> queryDetailsByParams(OrderDetailsQuery orderDetailsQuery){
        return  orderDetailsService.queryOrderDetailsByParams(orderDetailsQuery);
    }

}
